<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试页面</title>
</head>
<body>
<h1>测试页面</h1>
</body>
</html>
<script>
    let name='李思';
    let age=18;
    let person={
        name:name,
        age:age,
        showname:function(){
            alert(this.name)
        }
    }
    person.showname();
</script>